package com.xxx.system.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

/**
 * Tb Menu表
 * @TableName tb_menu
 */
@Data
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("Vue组件路径")
    private String component;

    @ApiModelProperty("菜单路由地址")
    private String url;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("菜单排序")
    private Integer index;

    @ApiModelProperty("上级菜单Id")
    private Long parentId;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Menu> children = new ArrayList<>();
}